package kuzha.ast;

public class TryFinallyStatement extends BlockStatement {
	public final Statement _try, _finally;
	
	public TryFinallyStatement(Statement _try, Statement _finally) {
		if (_try == null || _finally == null)
			throw new IllegalArgumentException();
		this._try = _try;
		this._finally = _finally;
	}
	
	@Override
	public void accept(AstVisitor visitor) {
		visitor.visit(this);
	}
	@Override
	public <A, R> R accept(AstVisitor2<A, R> visitor, A object) {
		return visitor.visit(this, object);
	}
}
